package com.aerozhonghuan.logisticsmall.framework.base;

import com.aerozhonghuan.logisticsmall.BuildConfig;

/**
 * 描述 常量定义
 *
 * @author zhangyonghui
 * 创建日期 2019-05-17
 */
public class URLs {

    /**
     * 业务服务器
     */
    public static final String HOST_BUSINESS = BuildConfig.HOST_BUSINESS;
//    public static final String HOST_BUSINESS = "http://mall-dev.dev188.cn";//临时测试

    // ---------- 登录部分 ------------
    /**
     * 提交设备信息（首次启动）
     */
    public static final String SERVER_PUSH_DEVICE = HOST_BUSINESS + "/cgi-bin/app-device/s_dev.json";

    /**
     * 更新设备信息（每次启动）
     */
    public static final String SERVER_UPDATE_DEVICE = HOST_BUSINESS + "/cgi-bin/app-device/u_dev.json";

    /**
     * Token验证
     * 验证Token是否为登录状态
     */
    public static final String SERVER_CHECK_TOKEN = HOST_BUSINESS + "/cgi-bin/app-auth/token.json";

    /**
     * 发送手机验证码
     */
    public static final String SERVER_SEND_SMS = HOST_BUSINESS + "/cgi-bin/app-captcha/sendMobileCaptcha.json";

    /**
     * 登录
     */
    public static final String SERVER_LOGIN = HOST_BUSINESS + "/cgi-bin/app-auth/login.json";

    /**
     * 退出登录
     */
    public static final String SERVER_LOGOUT = HOST_BUSINESS + "/cgi-bin/app-auth/logout.json";


    // ----------- 用户信息 -----------
    /**
     * 个人信息
     */
    public static final String SERVER_USER_INFO = HOST_BUSINESS + "/cgi-bin/app-me/info.json";

    /**
     * 我的二网公司列表
     */
    public static final String SERVER_COMPANY_LIST = HOST_BUSINESS + "/cgi-bin/app-me/company-list.json";

    /**
     * 切换二网公司
     */
    public static final String SERVER_COMPANY_SWITCH = HOST_BUSINESS + "/cgi-bin/app-me/company-switch.json";

    /**
     * 反馈
     */
    public static final String SERVER_FEEDBACK = HOST_BUSINESS + "/cgi-bin/app-me/feedback-new.json";

    /**
     * 是否存在未读消息
     */
    public static final String SERVER_REMIND = HOST_BUSINESS + "/cgi-bin/app-common/remind.json";

    /**
     * 我的消息列表
     */
    public static final String SERVER_MESSAGE_LIST = HOST_BUSINESS + "/cgi-bin/app-me/message.json";


    // ------- 订单部分 ----------
    /**
     * 我的订单列表
     */
    public static final String SERVER_ORDER_LIST = HOST_BUSINESS + "/cgi-bin/app-bill/list.json";
    /**
     * 提交订单
     */
    public static final String SUBMIT_ORDER = HOST_BUSINESS + "/cgi-bin/app-bill/submit.json";
    /**
     * 订单详情
     */
    public static final String SERVER_ORDER_DETAIL = HOST_BUSINESS + "/cgi-bin/app-bill/detail.json";
    /**
     * 取消订单
     */
    public static final String SERVER_ORDER_CANCEL = HOST_BUSINESS + "/cgi-bin/app-bill/cancel.json";
    /**
     * 确认服务
     */
    public static final String SERVER_ORDER_SERVICEOK = HOST_BUSINESS + "/cgi-bin/app-bill/serviceOk.json";
    /**
     * 我的结算
     */
    public static final String SERVER_ORDER_SETTLEMENT = HOST_BUSINESS + "/cgi-bin/app-me/settlement.json";

    /**
     * 获取用户头像
     */
    public static String USER_GET_USERPHOTO = HOST_BUSINESS + "/cgi-bin/user/queryPic";
    /**
     * 上传用户头像
     */
    public static String USER_UPLOAD_USERPHOTO = HOST_BUSINESS + "/cgi-bin/user/uploadPic";

    /**
     * 埋点接口
     */
    public static String BURYPOINT_URL = HOST_BUSINESS + "/cgi-bin/accumulate/burypoint";

    // ----------- 首页 -----------
    /**
     * 请求首页活动列表
     */
    public static String ACTIVITY_LIST_URL = HOST_BUSINESS + "/cgi-bin/app-index/activity-list.json";
    /**
     * 搜索接口
     */
    public static String SEARCH = HOST_BUSINESS + "/cgi-bin/app-good/search.json";
    /**
     * 根据分类获取商品列表（app-good/list.json）
     */
    public static String LIST = HOST_BUSINESS + "/cgi-bin/app-good/list.json";
    /**
     * 活动详情
     */
    public static String ACTIVITY_DETAIL = HOST_BUSINESS + "/cgi-bin/app-index/activity-detail.json";

    // ----------- 分类 -----------
    /**
     * 分类树
     */
    public static String TREE = HOST_BUSINESS + "/cgi-bin/app-catalog/tree.json";
    /**
     * 商品详情
     */
    public static String DETAIL = HOST_BUSINESS + "/cgi-bin/app-good/detail.json";

    /**
     * 检查订单
     */
    public static String CB = HOST_BUSINESS + "/cgi-bin/app-bill/cb.json";
    /**
     * 网点列表
     */
    public static String STORE_INFO_REQUEST = HOST_BUSINESS + "/cgi-bin/app-station/list.json";

    public static class IMG {
        public static String PRODUCT_IMAGE = HOST_BUSINESS + "/img/";  //生产
        public static String PRODUCT_TRIANGLE_IMG = HOST_BUSINESS + "/img/triangle/"; //角标
        public static String BANNER_IMG = HOST_BUSINESS + "/img/act/";  //banner地址拼接
        public static String CATEGORY_TRIANGLE_IMG = HOST_BUSINESS + "/img/category/";
        public static String IM_CHAT_IMAGE = HOST_BUSINESS + "/img/chat/";  //聊天
        public static String ADVERT_IMG = HOST_BUSINESS + "/img/advert/";//广告
        public static String SERVICES_IMAGE = HOST_BUSINESS + "/img/services/";  //便民
        public static String ACTIVE_IMAGE = HOST_BUSINESS + "/img/active/";  //活动
        public static String BOTTOM_ICON_IMAGE = HOST_BUSINESS + "/img/skin/";  //底部icon
        public static String PRODUCT_IMG_SUFFIX = "jpg";
    }
}
